package com.cargohu.aishouyu.operation.dto;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 添加APP公告参数
 *
 * @author yww
 * @since 2023-11-29
 */
@Data
@Schema(description = "添加APP公告参数")
public class AppNoticeAddDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "版本号")
    @NotBlank(message = "版本号不能为空")
    @Length(max = 15, message = "版本号长度超过限制")
    private String version;

    @Schema(description = "公告标题")
    @Length(max = 255, message = "公告标题长度超过限制")
    private String title;

    @Schema(description = "公告内容")
    @Length(max = 65535, message = "公告内容长度超过限制")
    private String content;

    @Schema(description = "结语")
    @Length(max = 65535, message = "结语长度超过限制")
    private String summary;

    @Schema(description = "删除标记，0未删除，1已删除")
    @Length(max = 1, message = "删除标记，0未删除，1已删除长度超过限制")
    private String delFlag;

}


